package com.sharkpro.designPattern.myTemplateMethod;

/**
 * @author jianxin.wei
 * @description
 * @date 2024/12/18 17:18
 */
public abstract class AbstractDisplay {
    public abstract void open();
    public abstract void print();
    public abstract void close();
    public final void display (){
        open();
        for (int i = 0; i < 5; i++) {
            print();
        }
        close();
    }
}
